package mpicbg.imagefeatures;

import java.io.Serializable;

public class fweights implements Comparable< fweights >, Serializable
 {
	public float weight;
	public Float[] feats;
	public Integer imagenumber;

	public fweights() {}

    public fweights(Float[] floats, float r)
    {
       feats = floats;
       weight = r;
       
    }
    public fweights(Float[] floats, float r, Integer imagenumber)
    {
       feats = floats;
       weight = r;
       this.imagenumber = imagenumber;
       
    }
    
    public int compareTo( fweights f )
	{
		return weight < f.weight ? 1 : weight == f.weight ? 0 : -1; 
		
	}
	

    public Float[] getfeats()
    {
       return feats;
    }

    public float getweight()
    {
       return weight;
    }

    public Integer getimageNumber()
    {
       return imagenumber;
    }
 }